package org.example.server.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.example.api.goods.goods.enums.GoodsStatusEnum;
import org.example.api.goods.goods.enums.GoodsTypeEnum;
import org.example.api.goods.goods.enums.SalesTypeEnum;
import org.example.frw.api.base.entity.BaseEntity;

@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@TableName("tb_goods")
public class GoodsEntity extends BaseEntity {
  /**
   * 分类ID
   */
  private Long categoryId;
  /**
   * 标题
   */
  private String title;

  /**
   * 副标题
   */
  private String subTitle;

  /**
   * 商品主图
   */
  private String mainImage;
  /**
   * 实体商品还是虚拟商品
   */
  private GoodsTypeEnum goodsType;

  /**
   * 商品状态
   */
  private GoodsStatusEnum status;

  /**
   * 销售量展示类型
   */
  private SalesTypeEnum salesType;

}